﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AspNetCs.Model;
using AspNetCs.SQLServerDAL;
using AspNetCs.Config;
using AspNetCs.Common;
using AspNetCs.Bll;
using System.Collections;
using System.Text.RegularExpressions;

public partial class _Default : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {

        Response.Write(Computer.Instance().ComputerName + "<br>");
        Response.Write(Computer.Instance().IpAddress + "<br>");
        Response.Write(Computer.Instance().DiskID + "<br>");
        Response.Write(Computer.Instance().CpuID + "<br>");
        // Response.End();



        //ArrayList list = new ArrayList(3);
        //list.Add("8");
        //list.Add("5");
        //list.Add("4");
        //  Response.Write(new Memorial_DAL().RndNum(list,8));
        //  Response.Write(StringHelper.RndNum(8));

        // <DbConnectstring>Data Source=125.65.109.192; Database=pub; Uid=js;pwd=19860411;</DbConnectstring>


        //int A1 = Convert.ToInt32(Utils.DateDiff(Utils.DateInterval.Minute, Convert.ToDateTime("2009-9-22 19:47:37"), DateTime.Now));
        //Response.Write("分钟数:" + A1);
        //Response.Write("小时数:" + A1 / 60);
        //Response.Write("天数:" + A1 / 60 / 24);
        //Response.Write("余下分钟数:" + A1 % 60);

        //Response.End();

        Response.Write(Request["id"]);
        Response.Write("aaaa");
        WebCache c = new WebCache();
        c.show();
        c.RemoveAllCache();
        Response.End();
        //  c.RemoveAllCache();
        Response.Write(AddSuffix("adfadfd1.aspx", ".Aspx"));
        Response.Write("<a href='Users/Login.Aspx?ReUrl=" + Server.UrlEncode("RegisterTwo.Aspx") + "'>ddddd</a>");
        //Integral_DAL idal = new Integral_DAL();
        //Integral_Model Model = new Integral_Model();
        //Model.UserId = 1;
        //Model.Num = 10;
        //Model.Readme = "用户登录-增加积分";
        //Model.Types = "Add";
        //Response.Write(idal.Add(Model));
        Response.Write("<br>Session的所有值:<br>");
        foreach (string obj in Session.Contents)
        {
            Response.Write(obj.ToString() + ":" + Session[obj] + "<br>");
        }
        Response.Write("<br>CookiEs的所有值:<br>");

        for (int i = 0; i < HttpContext.Current.Request.Cookies.Count; i++)
        {

            Response.Write(HttpContext.Current.Request.Cookies.Keys[i] + ":" + HttpContext.Current.Request.Cookies[i].Value.ToString() + "<br>");

        }


        Response.Write("<br>Application的所有值:<br>");

        for (int i = 0; i < HttpContext.Current.Application.Count; i++)
        {

            Response.Write(HttpContext.Current.Application.Keys[i] + ":" + HttpContext.Current.Application[i].ToString() + "<br>");

        }

    }
    protected void LinkButton1_Click(object sender, EventArgs e)
    {
        new Session_Property().UserExit();

    }
}
